Bug 705181 Annoying beep on arrow keys
authorEk Kato <ek.kato@gmail.com>
Tue, 13 Aug 2013 18:14:29 +0000 (11:14 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Tue, 13 Aug 2013 18:16:03 +0000 (11:16 -0700)
Original patch was a bit excessive, just needed to not forward the command.

gdk/quartz/GdkQuartzView.c

index 6bc3afeea176e008bba89b810604c2f8718f506b..1d125d3b992ccdcb9fd486533a0b9f81d9d26d46 100644 (file)
 -(void)doCommandBySelector: (SEL)aSelector
 {
   GDK_NOTE (EVENTS, g_print ("doCommandBySelector\n"));
-  /* Do nothing. Although we are required to implement this method for
-   * NSTextInputClient, we do not handle Cocoa command IDs, and the
-   * Apple docs explicitly say not to forward unhandled commands up
-   * the NSReponder chain, which calls NSBeep().
-  */
+  if ([self respondsToSelector: aSelector])
+    [self performSelector: aSelector];
 }
 
 -(void)insertText: (id)aString replacementRange: (NSRange)replacementRange